extern crate usrtrust;

use usrtrust::{ULogs,Environment};
use std::path::{Path};

use std::{thread, time};
fn main() -> std::io::Result<()> {

    let e = Environment::from_dir(Path::new("/tmp/usrtos")).unwrap();
    let logs = ULogs::from_env(&e);
    logs.reset();
    loop {
        logs.dump();
        thread::sleep(time::Duration::from_millis(500));
    }
    Ok(())
}
